<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Change_role extends Controller{
    function Change_role(){
        parent::Controller();
    }

    function index(){
        $this->load->model('admin/change_role_model','change', TRUE);
        $this->load->helper('url');
        $this->load->library('db_pegawai');
        $nama = $this->db_pegawai->retr_list_nama();
        $form = $this->change->form($nama);
        $this->load->view('admin/change_role_view', $form);
    }

    function change(){
        $this->load->model('admin/change_role_model','change', TRUE);
        $this->load->helper('url');
        $this->change->change();
    }
    
}
?>
